package hos.po;

public class P_information {
	String p_id;
	String p_name;
	String p_tel;
	int p_gender;
	String p_idcard;
	String p_pwd;
	int p_age;
	
	//获取列名
	public String getMessage(int a) {
		if(a == 0) {
			return p_id;
		}else if (a == 1) {
			return p_name;
		}else if (a == 2) {
			return p_tel;
		}else if (a == 3) {
			return p_gender+"";
		}else if (a == 4) {
			return p_age+"";
		}else if (a == 5) {
			return p_idcard;
		}
		return null;
	}
	//判断列名是否正确
	public boolean isColunm(String colunm) {
		if(colunm.equals("p_id") || colunm.equals("p_name") || colunm.equals("p_tel")
				|| colunm.equals("p_gender") || colunm.equals("p_age") || colunm.equals("p_idcard")) {
			return true;
		}else {
			return false;
		}
	}
	public String getP_pwd() {
		return p_pwd;
	}
	public void setP_pwd(String p_pwd) {
		this.p_pwd = p_pwd;
	}
	public String getP_id() {
		return p_id;
	}
	public void setP_id(String p_id) {
		this.p_id = p_id;
	}
	public String getP_name() {
		return p_name;
	}
	public void setP_name(String p_name) {
		this.p_name = p_name;
	}
	public String getP_tel() {
		return p_tel;
	}
	public void setP_tel(String p_tel) {
		this.p_tel = p_tel;
	}
	public int getP_gender() {
		return p_gender;
	}
	public void setP_gender(int p_gender) {
		this.p_gender = p_gender;
	}
	public String getP_idcard() {
		return p_idcard;
	}
	public void setP_idcard(String p_idcard) {
		this.p_idcard = p_idcard;
	}
	public int getP_age() {
		return p_age;
	}
	public void setP_age(int p_age) {
		this.p_age = p_age;
	}
	
}
